package cn.iune.backcenter.author;


import java.io.Serializable;
import javax.persistence.*;

import com.justep.baas.data.RowState;


/**
 * The persistent class for the sa_oprole database table.
 * 
 */
@Entity
@Table(name="SaOprole")
@NamedQuery(name="SaOprole.findAll", query="SELECT s FROM SaOprole s")
public class SaOprole implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(length=32)
	private String sID;

	@Column(length=255)
	private String sName;//名称
	@Column(length=32)
	private String sCode;//代码
	@Column(length=1024)
	private String sDescription;//角色描述
	@Column(length=32)
	private String sRoleKind;//角色类型

	private int sSequence;//序号

	private int sValidState;//可用状态

	@Column(length=128)
	private String sCatalog;//分类
	@Column(length=512)
	private String sParentRolesNames;//父角色名称列表
	
	@Column(length=32)
	private String orgID;

	@Column(length=256)
	private String sCreatorFID;//创始人
	
//	@Column(length=36)
//	private String userId;
//	@Column(length=36)
//	private String enterpriseNo;
//	@Column(length=128)
//	private String enterpriseName;

	@Version
	private int version = 0;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}

	public String getsID() {
		return sID;
	}

	public void setsID(String sID) {
		this.sID = sID;
	}

	public String getsCatalog() {
		return sCatalog;
	}

	public void setsCatalog(String sCatalog) {
		this.sCatalog = sCatalog;
	}

	public String getsCode() {
		return sCode;
	}

	public void setsCode(String sCode) {
		this.sCode = sCode;
	}

	public String getsDescription() {
		return sDescription;
	}

	public void setsDescription(String sDescription) {
		this.sDescription = sDescription;
	}

	public String getsName() {
		return sName;
	}

	public void setsName(String sName) {
		this.sName = sName;
	}

	public String getsParentRolesNames() {
		return sParentRolesNames;
	}

	public void setsParentRolesNames(String sParentRolesNames) {
		this.sParentRolesNames = sParentRolesNames;
	}

	public String getsRoleKind() {
		return sRoleKind;
	}

	public void setsRoleKind(String sRoleKind) {
		this.sRoleKind = sRoleKind;
	}

	public int getsSequence() {
		return sSequence;
	}

	public void setsSequence(int sSequence) {
		this.sSequence = sSequence;
	}

	public int getsValidState() {
		return sValidState;
	}

	public void setsValidState(int sValidState) {
		this.sValidState = sValidState;
	}


	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}
	public String getOrgID() {
		return orgID;
	}
	public void setOrgID(String orgID) {
		this.orgID = orgID;
	}
	public String getsCreatorFID() {
		return sCreatorFID;
	}
	public void setsCreatorFID(String sCreatorFID) {
		this.sCreatorFID = sCreatorFID;
	}


}